import request from '@/utils/request.js'
// 项目列表
export function getProjectList(query) {
  return request({
    url: '/drink/projectlist/list',
    method: 'get',
    params: query
  })
}
// /drink/projectlist/getInfo/{id}
export function getProjectInfo(id) {
  return request({
    url: `/drink/projectlist/getInfo/${id}`,
    method: 'get',
  })
}
// /drink/projectlist/edit
export function editProject(data) {
  return request({
    url: '/drink/projectlist/edit',
    method: 'post',
    data
  })
}

// /drink/projectlist/add
export function addProject(data) {
  return request({
    url: '/drink/projectlist/add',
    method: 'post',
    data
  })
}
// /drink/projectlist/remove/{ids}
export function removeProject(ids) {
  return request({
    url: `/drink/projectlist/remove/${ids}`,
    method: 'get',
  })
}
